import 'package:flutter/material.dart';
import 'package:tiktok_clone/resources/dimen.dart';
import 'package:tiktok_clone/resources/strings.dart';

Widget homeHeader(Color followingColor, Color forYouColor) {

  return Container(
    margin: EdgeInsets.only(top: 40),
    height: Dimen.headerHeight,
    child: Row(
      mainAxisAlignment: MainAxisAlignment.center,
      mainAxisSize: MainAxisSize.max,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: <Widget>[
        Padding(
          padding: EdgeInsets.only(left: 10, right: 10),
          child: Text(
            AppStrings.followingString,
            style: TextStyle(
                fontSize: 18, color: followingColor, fontWeight: FontWeight.w500),
          ),
//          RawMaterialButton(
//              child: Text(
//                AppStrings.followingString,
//                style: TextStyle(
//                    fontSize: 18, color: followingColor, fontWeight: FontWeight.w500),
//              ),
//              onPressed: () {
//                Navigator.push(context, new MaterialPageRoute(builder: (context) => new FollowingScreen()));
//              },
//          )

        ),
        Text(
            AppStrings.delimiter,
            style: TextStyle(
                fontSize: 18, color: Colors.grey, fontWeight: FontWeight.bold)),
        Padding(
          padding: EdgeInsets.only(left: 10, right: 10),
          child: Text(AppStrings.forYouString,
              style: TextStyle(fontSize: 18, color: forYouColor, fontWeight: FontWeight.w500)),
        )
      ],
    ),
  );
}
